package com.akoj.anmu.common;

/**
 * 响应状态码枚举
 */
public enum ResponseCode {

    SUCCESS(200, "请求成功", ""),
    ERROR(400, "请求失败", ""),
    PARAMS_ERROR(401, "请求参数错误", ""),
    NOT_LOGIN(402, "未登录", ""),
    NO_AUTH(40101, "无权限", ""),
    NOT_FOUND(404, "请求数据不存在", ""),
    SERVER_ERROR(500, "服务器内部错误", "");

    //错误码
    private final int code;

    //状态码信息
    private final String message;

    //错误描述
    private final String description;

    ResponseCode(int code, String message, String description){
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getMessage(){
        return message;
    }

    public String getDescription(){
        return description;
    }


}
